//
// Created by Administrator on 2020/11/29.
//

#ifndef MYNDK_JAVACALLHELPER_H
#define MYNDK_JAVACALLHELPER_H


#include <jni.h>

class JavaCallHelper {

public:
    JavaCallHelper(JavaVM *pVm, JNIEnv *pEnv, jobject pJobject);

    ~JavaCallHelper();

//回调java
    void  onError(int thread,int errorCode);
    void onPrepare(int thread);
private:
    JavaVM *vm;
    JNIEnv *env;
    jobject jobject1;
    jmethodID onErrorId;
    jmethodID onPrepareId;
};


#endif //MYNDK_JAVACALLHELPER_H
